package com.lagou.edu.client;

import com.lagou.edu.client.impl.EmailClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: yeqingyun
 * @Date: 2020/11/20 19:28
 */
@FeignClient(value = "lagou-service-email", fallback = EmailClientFallback.class)
public interface EmailClient {

    @RequestMapping("/email/{email}/{code}")
    boolean sendCode(@PathVariable("email") String email, @PathVariable("code") String code);
}
